package com.fosss.band.utils;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    ERROR(201, "失败"),

    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限"),
    LOGIN_USER_ERROR(210, "用户名密码不能为空"),
    VERIFY_CODE_TIMEOUT(211, "验证码过期，请重新获取"),
    VERIFY_CODE_ERROR(212, "验证码错误"),
    ACCOUNT_ERROR(214, "用户不存在"),
    PASSWORD_ERROR(215, "密码不正确"),
    EMAIL_ERROR(216, "邮箱不正确"),
    ACCOUNT_STOP(217, "账号已停用"),
    EMAIL_REPEAT(218, "邮箱已被注册"),
    LOGIN_TIMEOUT(500, "登录过期，请重新登录"),
    USERNAME_REPEAT(220, "用户名已被占用"),

    BAND_NAME_NULL(221, "乐队名称不能为空"),

    SCORE_REPEAT(301, "同一专辑只能评分一次"),

    MESSAGE_UN_ENOUGH(302, "信息填写不全");

    private final Integer code;

    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
